package com.yzg.sign.project.service;

import com.yzg.sign.project.common.Result;
import com.yzg.sign.project.domain.SysUser;
import com.yzg.sign.project.request.LoginForm;
import com.yzg.sign.project.request.UserAddAndEditRequest;
import org.springframework.data.domain.Page;

import java.util.Map;

public interface SysUserService
{
    Result<String> saveOrUpdate(UserAddAndEditRequest request);


    Result<Page<SysUser>> getUserPage(Map<String, String> params);


    Result<String> delete(Integer id);

    Result<String> loginByPassword(LoginForm loginForm);

    Result<SysUser> getUserInfo();

    Result<String> loginOut();

    Result<String> code2Session(String code);
}
